Skip to content

Comments

DFI-1577 rework performance test setup #22

Merged
zachhall1234 merged 14 commits intomainfrom
DFI-1577
Feb 23, 2026
Merged

DFI-1577 rework performance test setup #22
zachhall1234 merged 14 commits intomainfrom
DFI-1577

Conversation

@zachhall1234
Copy link
Contributor

No description provided.

# This is the 1st commit message:

DFI-1577 change simulation to use same zRef throughout all subsequent API calls

# This is the commit message #2:

DFI-1577 WIP

# This is the commit message #3:

DFI-1577 WIP

# This is the commit message #4:

DFI-1577 WIP

# This is the commit message #5:

DFI-1577 test setup refactored

# This is the commit message #6:

DFI-1577 descreased payload size

# This is the commit message #7:

DFI-1577 increased number of IsaAccount in single payload to 4000 lines

# This is the commit message #8:

DFI-1577 increased number of IsaAccount in single payload to 8000

# This is the commit message #9:

DFI-1577 create one ndJson payload and reuse

# This is the commit message #10:

DFI-1577 test with 8000 IsaAccounts

# This is the commit message #11:

DFI-1577 added logging for memory used

# This is the commit message #12:

DFI-1577 reduce payload size

# This is the commit message #13:

DFI-1577 increase xXms & Xmx values and payload size

# This is the commit message #14:

DFI-1577 stream payload instead of holding payload in memory

# This is the commit message #15:

DFI-1577 increased payload to 16k ISA accounts

# This is the commit message #16:

DFI-1577 tidy up

# This is the commit message #17:

DFI-1577 increase concurrent users to 10

# This is the commit message #18:

DFI-1577 increase concurrent users to 10

# This is the commit message #19:

DFI-1577 increase concurrent users to 2
.post(s"$disaReturnsHost$disaReturnsRoute#{isaManagerReference}/#{taxYear}/#{month}")
.headers(headerWithClientIdAndBearerToken)
.body(StringBody(validNdjsonTestData()))
.body(RawFileBody(submissionPayloadFilePath)).asJson
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What RawFileBody does:

Open NDJSON file → stream bytes → write to buffer → send

appose to what we was happening previously with StringBody

Load entire file → build giant String → send

This was consuming large amounts of gatlings memory resulting in OOM expections

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we configure this? Robs comment

monthly-returns-declaration-journey,
monthly-reconciliation-report-summary-journey
submit-monthly-returns,
nps-report-summary-callback
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we running 'nps-retrieve-monthly-summary-and-report' later ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep put todos in simulation and created https://jira.tools.tax.service.gov.uk/browse/DFI-1720 here to fully implement the get report reconciliation & test support integration

Copy link
Contributor

@lahiruwijesingheOC lahiruwijesingheOC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@zachhall1234 zachhall1234 merged commit 20639fb into main Feb 23, 2026
1 check passed
@zachhall1234 zachhall1234 deleted the DFI-1577 branch February 23, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants